<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1 id = "taiwan">今年估计要收复台湾了</h1>
    <div class="box">我是div1</div>
    <div class="box">我是div2</div>
    <div class="box">我是div3</div>
    <ol>
        <li>我是第一个孩子</li>
        <li>我是第二个孩子</li>
        <li>我是第三个孩子</li>
    </ol>
    <ul class="nav">
        <li>新闻</li>
        <li>体育</li>
        <li>娱乐</li>
    </ul>


    <input type="checkbox" name="hobby" value="打球">打球 <br>

    <input type="checkbox" name="hobby" value="打游戏">打游戏 <br>

     <input type="checkbox" name="hobby" value="跳舞">跳舞 <br>
    

    <script>
        let taiwanObject = document.getElementById("taiwan");
        console.log(taiwanObject);

        let lis = document.getElementsByTagName("li");
        console.log(lis);

        let objs = document.getElementsByClassName("box");
        console.log(objs);

        let hobbies  = document.getElementsByName("hobby");

        console.log(hobbies);


    </script>
</body>
</html>